<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Exports\UsersExport;
use Maatwebsite\Excel\Facades\Excel;
use App\Repos\UserRepo;

class CensusController extends Controller
{
    public function user()
    {
    	$list = UserRepo::getUsers();
    	return view('admin.census.user',compact('list'));
    }

    public function shop()
    {

    }

    public function envelope()
    {

    }

    /**
     * 新增客户统计
     */
    public function newUserExport() 
    {        
        return (new UsersExport('2018-12-03'))->download('users.xlsx');
    }
}
